﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Website/Views/Shared/Master.Master"
    Inherits="System.Web.Mvc.ViewPage<ENews>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <%if (Model == null)
      {%>
    <h3 class="news_title">
        数据不存在！</h3>
    <%}
      else
      {%>
    <h3 class="news_title">
        <%=Model.Title %></h3>
    <div class="news_author">
        <span>
            <%=Model.Author %></span><span><%=Model.WriteTime.ToString("yyyy-MM-dd") %></span>
    </div>
    <div class="news_body">
        <%=Model.Contents %>
    </div>
    <%} %>
    <div class="backHome">
        <a href="javascript:history.go(-1)">返回</a></div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <%= HtmlMetaHelper.HtmlTitle(Model!=null ? Model.Title : "新闻详细信息")%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cssLink" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="jsLink" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cssContent" runat="server">
    <style type="text/css">
        .news_title
        {
            text-align: center;
            color:#9a419f;
            display:none;
            font-size:16px;
            font-weight:bold;
        }
        .news_author
        {
            margin: 5px;
            padding: 5px;
            display:none;
            text-align: center;
        }
        .news_author span
        {
            color: #333;
        }
        .news_body
        {
            line-height: 1.5;
            overflow:hidden;
        }
    </style>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="jsContent" runat="server">
</asp:Content>
